package com.sunwayworld.baseline.qywx.login;

import com.alibaba.fastjson.JSONObject;
import com.sunwayworld.baseline.qywx.login.bean.AppInfo;
import com.sunwayworld.baseline.qywx.login.bean.EnterpriseWxConf;
import com.sunwayworld.baseline.qywx.login.utils.RestUtil;
import org.springframework.stereotype.Service;

/**
 * 
 * @author Fu Hong Xu
 * @since 2021-09-11
 *
 */

@Service
public class QywxLimsSenderService extends QywxSenderService {
    
    protected AppInfo getAppInfo() {
        String fileJson = RestUtil.getJsonFromFile("enterprise_wx_conf");
        EnterpriseWxConf conf = JSONObject.parseObject(fileJson, EnterpriseWxConf.class);
        return conf.getLimsAppInfo();
    }
}
